﻿using System;
using ZhongLangDB;

namespace ZHONGLANGWEBUI
{
    public partial class USER_CHANGPASSWORD : TT_BasePage
    {
         
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
            }
        }
         
        protected void lbtnPass1_onClick(object sender, EventArgs e)
        { 
            string strBack = getUserPasschange(txtUserPassOld1.Text, txtUserPass1.Text, txtUserPassP1.Text);
            if (strBack == "") { lblTempMsg.Text = "操作成功,下次登录请使用新密码！"; jsMessage("操作成功,下次登录请使用新密码！"); }
            else { lblTempMsg.Text = (strBack); } 
        }
        protected void lbtnPass_onClick(object sender, EventArgs e)
        {
            string strBack = getUserPasschangeOpt(txtUserPassOld.Text, txtUserPass.Text, txtUserPassP.Text);
            if (strBack == "") { lblTempMsg.Text = "操作成功,下次操作请使用新密码！"; jsMessage("操作成功,下次操作请使用新密码！"); }
            else { lblTempMsg.Text = (strBack); }
        }
    }
}